import { createRouter, createWebHistory } from 'vue-router'
import ConsultExpert from '../views/ConsultExpert.vue'
import CommunicationPlatform from '../views/CommunicationPlatform.vue'
import PlantDiseaseDetection from '../views/PlantDiseaseDetection.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/Home.vue'),
    },

    {
      path: '/consult-expert',
      name: 'consult-expert',
      component: () => ConsultExpert,
    },
    {
      path: '/communication-platform',
      name: 'communication-platform',
      component: CommunicationPlatform,
    },
    {
      path: '/plant-disease-detection',
      name: 'plant-disease-detection',
      component: PlantDiseaseDetection,
    },
  ],
})

export default router
